#include <iostream>

using namespace std;

int main(void)
{
    float C,B,A;
    char key;
    cout << "A=" ;
    cin >>A;
    cin.get(key);
    cout << "B=" ;
    cin >>B;
    cin.get(key);
    cout << "C=" ;
    cin >>C;
    cin.get(key);
    cout <<"Otvet: "<< endl;
    if (((A < B)&&(B < C))||((A > B)&&(B > C))) {
    A*=2;
    B*=2;
    C*=2;
    }
    else {
    A*=-1;
    B*=-1;
    C*=-1;
    }
    cout << A<< endl;
    cout << B<< endl;
    cout << C<< endl;
    cout <<"Press key";
    cin.get(key);
    return 0;
    }


